package com.xuecheng.order;

import com.xuecheng.api.agent.CoursePubIndexApiAgent;
import com.xuecheng.api.search.CoursePubSearchApi;
import com.xuecheng.common.domain.response.RestResponse;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class test01 {


    @Autowired
    private CoursePubIndexApiAgent searchApiAgent;

    @Test
    public void test01() {
        RestResponse resp = searchApiAgent.getCoursePubIndexById4s(4L);
        if (resp.isSuccessful()) {
            Object result = resp.getResult();
            System.out.println(result);
        } else {
            System.out.println("获得失败");
        }

    }
}
